<%@page import="com.gss.common.util.ApplicationConstants"%>
<%@include file="../common.jsp" %>

<tr>
	<td class="spacingColumnWidthLess"></td>
	<td class="formLabel"><label>Validity Condition</label></td>
	<td class="spacingColumnWidthLess"></td>
	<td class="formField">
		<form:select path="renewable" onchange="enableDisableFields('docRenewableSelect');" id="docRenewableSelect" disabled="true">
			<form:option value="true">Limited</form:option>
			<form:option value="false" >Lifetime</form:option>			
	</form:select>
	</td>
	<td class="spacingColumnWidthMedium"></td>
</tr>

<tr class="formSpacingRow formBlockColor"><td colspan="9"></td></tr>
<tr>
	<td class="spacingColumnWidthLess"></td>
	<td class="formLabel"><label>Validity Start Date</label></td>
	<td class="spacingColumnWidthLess"></td>
	<td class="formField">
		<fmt:formatDate value="${renewalDetailsForm.docValidityStartDate}" pattern="<%=com.gss.common.util.ApplicationConstants.DEFAULT_DATE_PATTERN%>"/>
	</td>
	<td class="spacingColumnWidthMedium"></td>
	<td class="formLabel"><label>Validity End Date</label></td>
	<td class="spacingColumnWidthLess"></td>
	<td class="formField">
		<fmt:formatDate value="${renewalDetailsForm.docValidityEndDate}" pattern="<%=com.gss.common.util.ApplicationConstants.DEFAULT_DATE_PATTERN%>"/>
	</td>
	<td class="spacingColumnWidthLess"></td>									
</tr>

<tr class="formSpacingRow formBlockColor"><td colspan="9"></td></tr>
<tr>
	<td class="spacingColumnWidthLess"></td>
	<td class="formLabel"><label>Escalation Periods:</label></td>
	<td class="spacingColumnWidthLess"></td>
</tr>
<tr class="formSpacingRow formBlockColor"><td colspan="9"></td></tr>
<tr class="formBlockColor">
	<td class="spacingColumnWidthLess"></td>
	<td class="formLabel"></td>
	<td colspan="6">
		<table style="width: 80%;">
			<tr align="center">
				<td class="formLabel"><label>First</label></td>
				<td class="spacingColumnWidthLess"></td>
				<td>
					<form:input path="firstEscalationPeriod"   readonly="true" cssClass="text ui-corner-all numtext disableInputField"/>
				</td>
				<td class="spacingColumnWidthMedium"></td>
				<td class="formLabel"><label>Second</label></td>
				<td class="spacingColumnWidthLess"></td>
				<td>
					<form:input path="secondEscalationPeriod"   readonly="true" cssClass="text ui-corner-all numtext disableInputField"/> 
				</td>
				<td class="spacingColumnWidthMedium"></td>
				<td class="formLabel"><label>Third</label></td>
				<td class="spacingColumnWidthLess"></td>
				<td >
					<form:input path="thirdEscalationPeriod"   readonly="true" cssClass="text ui-corner-all numtext disableInputField"/>  
				</td>
			</tr>
			
		</table>
	</td>
	<td class="spacingColumnWidthLess"></td>
</tr>
<tr class="formSpacingRow formBlockColor"><td colspan="9"></td></tr>

	<%-- <tr>
		<td>
			<label>Document Validity Condition</label>
		</td>
		<td class="spacingColumn"></td>
		<td>
			<form:select path="renewable"  disabled="true" onchange="enableDisableFields('docRenewableSelect');" id="docRenewableSelect">
				<form:option value="false">Lifetime</form:option>
				<form:option value="true">Limited</form:option>
			</form:select>
		</td>
	</tr>
	<tr>
		<td><label>Validity Start Date</label> </td>
		<td class="spacingColumn"></td>
		<td>
			<fmt:formatDate value="${renewalDetailsForm.docValidityStartDate}" pattern="<%=com.gss.common.util.ApplicationConstants.DEFAULT_DATE_PATTERN%>"/> 
		</td>
		<td class="spacingColumn"></td>
		<td><label>Validity End Date</label> </td>
		<td class="spacingColumn"></td>	
		<td>
			<fmt:formatDate value="${renewalDetailsForm.docValidityEndDate}" pattern="<%=com.gss.common.util.ApplicationConstants.DEFAULT_DATE_PATTERN%>"/>
		</td>
	</tr>
	<tr class="spacingRow"><td></td> </tr>
	<tr>
		<td><label>Escalation Periods:</label> </td>
	</tr>
	<tr>
		<td><label>First</label> </td>
		<td class="spacingColumn"></td>
		<td>
			<form:input path="firstEscalationPeriod"  readonly="true" cssClass="text ui-widget-content ui-corner-all numtext disableInputField"/> 
		</td>
		<td class="spacingColumn"></td>
		<td><label>Second</label> </td>
		<td class="spacingColumn"></td>	
		<td>
			<form:input path="secondEscalationPeriod"  readonly="true" cssClass="text ui-widget-content ui-corner-all numtext disableInputField"/> 
		</td>
		<td class="spacingColumn"></td>
		<td><label>Third</label> </td>
		<td class="spacingColumn"></td>
		<td>
			<form:input path="thirdEscalationPeriod"  readonly="true" cssClass="text ui-widget-content ui-corner-all numtext disableInputField"/> 
		</td>
	</tr>
	<tr class="spacingRow"><td></td> </tr> --%>